package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ResparaDao;
import com.xy.gateway.model.Respara;
import com.xy.gateway.service.ResparaService;

@Service
@Transactional
public class ResparaServiceImpl extends BaseServiceImpl<Respara> implements
		ResparaService {
	private ResparaDao resparaDao;

	public ResparaServiceImpl(ResparaDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.resparaDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return resparaDao.checkExist("Respara", paraName, paraValue);
	}

	@Override
	public List<Respara> getRespara(Map<String, Object> map) {
		return resparaDao.getRespara(map);
	}
	@Override
	public Pagination getResparaByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return resparaDao.getResparaByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Respara save(Respara respara1) {return super.save(respara1);}
}